package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.IflightRefundbankcardMapper;
import com.ktgj.flight.domain.IflightRefundbankcard;
import com.ktgj.flight.service.IIflightRefundbankcardService;

/**
 * 国际机票退款信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-31
 */
@Service
public class IflightRefundbankcardServiceImpl implements IIflightRefundbankcardService 
{
    @Autowired
    private IflightRefundbankcardMapper iflightRefundbankcardMapper;

    /**
     * 查询国际机票退款信息
     * 
     * @param reid 国际机票退款信息ID
     * @return 国际机票退款信息
     */
    @Override
    public IflightRefundbankcard selectIflightRefundbankcardById(Long reid)
    {
        return iflightRefundbankcardMapper.selectIflightRefundbankcardById(reid);
    }

    /**
     * 查询国际机票退款信息列表
     * 
     * @param iflightRefundbankcard 国际机票退款信息
     * @return 国际机票退款信息
     */
    @Override
    public List<IflightRefundbankcard> selectIflightRefundbankcardList(IflightRefundbankcard iflightRefundbankcard)
    {
        return iflightRefundbankcardMapper.selectIflightRefundbankcardList(iflightRefundbankcard);
    }

    /**
     * 新增国际机票退款信息
     * 
     * @param iflightRefundbankcard 国际机票退款信息
     * @return 结果
     */
    @Override
    public int insertIflightRefundbankcard(IflightRefundbankcard iflightRefundbankcard)
    {
        return iflightRefundbankcardMapper.insertIflightRefundbankcard(iflightRefundbankcard);
    }

    /**
     * 修改国际机票退款信息
     * 
     * @param iflightRefundbankcard 国际机票退款信息
     * @return 结果
     */
    @Override
    public int updateIflightRefundbankcard(IflightRefundbankcard iflightRefundbankcard)
    {
        return iflightRefundbankcardMapper.updateIflightRefundbankcard(iflightRefundbankcard);
    }

    /**
     * 批量删除国际机票退款信息
     * 
     * @param reids 需要删除的国际机票退款信息ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundbankcardByIds(Long[] reids)
    {
        return iflightRefundbankcardMapper.deleteIflightRefundbankcardByIds(reids);
    }

    /**
     * 删除国际机票退款信息信息
     * 
     * @param reid 国际机票退款信息ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundbankcardById(Long reid)
    {
        return iflightRefundbankcardMapper.deleteIflightRefundbankcardById(reid);
    }
}
